package com.kkwrite.regimen.common.constant;

/**
 * Created by lisha on 2018/7/21 17:30.
 *
 * @author lisha
 */
public enum SortTypeEnum {
    /**
     * 正序
     */
    POSITIVE_SEQUENCE(1),
    /**
     * 逆序
     */
    REVERSE_SEQUENCE(2);

    private Integer value;

    SortTypeEnum(Integer value) {
        this.value = value;
    }

    public Integer getValue() {
        return value;
    }

    public static boolean isSortType(Object value) {
        return SortTypeEnum.POSITIVE_SEQUENCE.getValue().equals(value) || SortTypeEnum.REVERSE_SEQUENCE.getValue().equals(value);
    }
}
